package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffPlanUseBudgetAccountCapitalSourceDto
 * @使用场景
 */
@Data
public class BffPlanUseBudgetAccountCapitalSourceDto implements Serializable {

    /**
     * 资金来源ID
     */
    @ApiModelProperty("资金来源ID")
    private String capitalSourceId;

    /**
     * 资金来源标识
     */
    @ApiModelProperty("资金来源标识")
    private String capitalSourceCode;

    /**
     * 资金来源名称
     */
    @ApiModelProperty("资金来源名称")
    private String capitalSourceName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffPlanUseBudgetAccountCapitalSourceDto that = (BffPlanUseBudgetAccountCapitalSourceDto) o;
        return capitalSourceId == that.capitalSourceId && capitalSourceCode == that.capitalSourceCode && capitalSourceName == that.capitalSourceName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), capitalSourceId, capitalSourceCode, capitalSourceName);
    }

}
